package com.geline.mybatisplus.annotation;

import java.lang.annotation.*;

/**
 * 删除后置处理：可以用于更新关联表等操作
 * @AfterDelete(value="update table set is_used=0")
 *
 * @author: mx
 * @date: 2024-07-31 15:08
 */
@Repeatable(AfterDeletes.class)
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface AfterDelete {

    //动态sql
    String value();

    //提示
    String errorMsg() default "@AfterDelete error !";
}
